/* 
 * File:   NonTerminal.h
 * Author: cpp
 *
 * Created on May 4, 2010, 3:47 AM
 */

#ifndef _NONTERMINAL_H
#define	_NONTERMINAL_H
#include  "LanguageElement.h"
class NonTerminal: public LanguageElement {
public:
    NonTerminal();
    NonTerminal(const NonTerminal& orig);
    virtual ~NonTerminal();
    void setId(const string& id);
    string getSID();
private:

};
NonTerminal::NonTerminal() {
}

NonTerminal::NonTerminal(const NonTerminal& orig) {
    id = orig.id;
}

NonTerminal::~NonTerminal() {
}

void NonTerminal::setId(const string& id){
    if ((id[0] == '<') && (id[id.size()-1] == '>'))
    {
        this->id = id;
    }
}

string NonTerminal::getSID(){
    string x;
    x = id.substr(1,id.size()-2);
    return x.append(" ");
}

#endif	/* _NONTERMINAL_H */

